package com.etc.单例模式.懒汉式;

/**
 * @Author 静静
 * @Description
 * @Date 2021/3/7  15:35
 **/
public class Cat {

    private static Cat cat = null;

    private Cat(){
    }

    public static Cat getInstance(){
        if(cat == null){
            cat= new Cat();
        }
        return cat;
    }


    public  void CatInfo(){
        System.out.println("我姓游");
    }


}
